#include "GGE.h"
GGE_Sound::GGE_Sound( )
{
  varGGE_AudioVolume  = 128;
}

void GGE_Sound::Load( const char *chsound )
{
  varGGE_MUSIC = Mix_LoadMUS(chsound);
}

void GGE_Sound::Play ( int mode )
{
  Mix_PlayMusic( varGGE_MUSIC, mode );
}

void GGE_Sound::Pause ( void )
{
  Mix_PauseMusic ( );
}

void GGE_Sound::Resume ( void )
{
  Mix_ResumeMusic();
}

void GGE_Sound::Stop ( void )
{
  Mix_HaltMusic();
}

void GGE_Sound::Volume ( int vol )
{
  varGGE_AudioVolume = vol;
  Mix_VolumeMusic( varGGE_AudioVolume);
}
